-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project Guess Who - Week 3 Julia #336
base: main
Are you sure you want to change the base?
Conversation
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Project Name</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the name could be changed? :)
padding: 5vw; | ||
align-items: center; | ||
box-sizing: border-box; | ||
background: linear-gradient(90deg, lightsalmon, #c58fc9, #48D1CC); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loving the gradient!!!
charactersInPlay = CHARACTERS; | ||
generateBoard(); // Invokes generateBoard function. | ||
setSecret(); // Invokes setSecret function. | ||
filterBtn.disabled = true; // Disables the "Find Out" button before the player has selected an option from the selection menu. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice solution! Also, good explanation in comments of what's going on!
const category = questions.options[questions.selectedIndex].parentNode.label | ||
filterBtn.disabled = false; // Enables the "Find Out" button when a selection has been made. | ||
filterBtn.style.opacity = "1"; // Opacity set to default on the find out button. | ||
const category = questions.options[questions.selectedIndex].parentNode.label; // This variable stores what option group the question belongs to. | ||
|
||
// This variable stores what option group (category) the question belongs to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe you left the already existing comment, and wrote a new one that explains the same piece of code? Makes it a little confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clear code overall! It's easy to follow, due to comments and structure. I think you seem to have a quite consistent naming of variables, super! And most important, to me it seems to be running perfectly. As I kind of expect from the CSS pro that you are, you added some nice css, fun! As you mentioned to me before, you have started a new version of the page, so my comments might be a little all over, sorry for that.
https://project-guess-who-julia.netlify.app/